package spring.transaction;

import javax.sql.DataSource;

public class DataSourceTransactionManager implements PlatformTransactionManager {

    private Transaction transaction;

    @Override
    public void setDataSource(DataSource dataSource) {
        transaction = new TransactionContext(dataSource);
    }

    @Override
    public Transaction getTransaction() {
        return transaction;
    }

}
